import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import userindex from '@/components/user/index'
import adminindex from '@/components/admin/index'
import zaotangindex from '@/components/zaotang/index'
import userorder from '@/components/user/userorder'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'hello',
      component: HelloWorld,
    },
    {
      path: '/userindex',
      name: 'userindex',
      component:userindex,
    },
    {
      path: '/adminindex',
      name: 'adminindex',
      component:adminindex,
    },
    {
      path: '/zaotangindex',
      name: 'zaotangindex',
      component:zaotangindex,
    },
    {
      path: '/userOrder',
      name: 'userorder',
      component:userorder,
    }
  ],


})
